<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Pc_Finance_Listener extends Stourweb_Controller
{
    public function before()
    {
        parent::before();
    }

    //平台收入,订单状态为2 or 5
    public function action_platform_income()
    {
        $ordersn = Common::remove_xss(Arr::get($_GET, 'ordersn'));
        $res = Model_Finance_Listener::platform_income($ordersn);

        exit(json_encode($res));
    }



    //预订产品设置记录相应的成本和基础价,订单状态为0 和 1时
    public function action_order_set_count_info()
    {
        $ordersn = Common::remove_xss(Arr::get($_GET,'ordersn'));
        $res = Model_Finance_Listener::order_set_count_info($ordersn);

        exit(json_encode($res));
    }






}